<?php

include "../utils/_connection.php";
$var = conectar();
session_start();

$id = $_SESSION['id'];

$co_author = $_POST['name'];
$degree =  $_POST['degree'];
$center =  $_POST['center'];
$bios =  $_POST['bios'];

$sql = "INSERT INTO `coauthors`
				(`id_author`, `name`, `center`, `degree`, `bios`) 
		VALUES 
				('$id','$co_author' ,'$center' ,'$degree' ,'$bios')";


mysql_query($sql);

header('Location: /backend/autor/');
?>